package com.atgion.service;


import com.atgion.service.fallback.UserClientFallbackFactory;
import com.atgion.spzx.model.entity.user.UserAddress;
import io.swagger.v3.oas.annotations.Parameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user",fallbackFactory = UserClientFallbackFactory.class)
public interface UserFeignClient {

    @GetMapping("/api/user/userAddress/getUserAddress/{id}")
    public UserAddress getUserAddress(@Parameter(name = "id",  required = true)  @PathVariable Long id);


}
